package pl.auction_search.model;

import java.util.Collection;
import java.util.List;

public interface ISearchResultModel<T> {
	public interface ISearchCategory<T> {
		List<T> list();
		T[] toArray();
		
		String getName();
		ISearchCategory<T> add(T r);
	}

	public ISearchCategory<T> getCategory(String name);
	public Collection<ISearchCategory<T>> listCategories();
	public void add(T t);
	public void registerChangeListener(Runnable r);
}
